package org.grottarossa.template.data.enums;

public enum EnumWorkItemType
{
	Default(0),
	CaseFolder(1),
	Process(2),
	FileStore(3),
	FormData(1024);

	EnumWorkItemType(int val) { }

	// x.y.z la fillKey che rappresenta gli oggetti coinvolti nel processo
	public static EnumWorkItemType getEnumValue(int target)
	{
		switch (target) {
		case 0:
			return Default;
		case 1:
			return CaseFolder;
		case 2:
			return Process;
		case 3:
			return FileStore;
		case 1024:
			return FormData;
		default:
			return Default;
		}
	}

	public boolean isDefault()
	{
		switch (this) {
		case Default:
			return true;
		}
		return false;
	}
	public boolean isCaseFolder()
	{
		switch (this) {
		case CaseFolder:
			return true;
		}
		return false;
	}
	public boolean isProcess()
	{
		switch (this) {
		case Process:
			return true;
		}
		return false;
	}
	public boolean isFileStore()
	{
		switch (this) {
		case FileStore:
			return true;
		}
		return false;
	}
	public boolean isFormData()
	{
		switch (this) {
		case FormData:
			return true;
		}
		return false;
	}


}
